package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 相当于创建了一个“有关配置类properties”的配置类，可以在properties中设置gulimall.thread.xxx相关的设置
 * 即可以在properties文件中调整线程池相关的参数
 * */
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    private int corePoolSize;
    private int maxPoolSize;
    private long keepAliveTime;
}

